/**
 * BASE STYLES
 * Note: with 62.5% font size, 1.5rem = 15px
 */

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

*:focus {
  outline: none;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  overflow-y: auto;
  font-size: 62.5%;

  /**
   ** http://stackoverflow.com/questions/24309789/how-to-slide-in-divs-from-off-screen-into-absolute-layout-using-css-transitions
   **/
  overflow-x: hidden;

  /**
   ** http://stackoverflow.com/questions/14217783/set-height-100-on-absolute-div
   **/
  position: relative;
  height: 100%;
}

body {
  background-color: var(--white);
  height: 100%;
  font-family: system-ui;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--navy800);
}

/** Typography **/

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
}

hr {
  border: 0;
  border-bottom: 1px solid var(--grey100);
  margin: 0;
}

a {
  color: var(--navy900);
  text-decoration: underline;
  cursor: pointer;
}

a:hover {
  text-decoration: underline;
  cursor: pointer;
}

/** Sane defined list default */
dt {
  font-weight: 500;
}

dd,
dt {
  margin: 0;
}

dd {
  color: var(--navy800);
}

/**
 * Remove ugly chrome autofill colour
 */
::-webkit-autofill {
  background: transparent;
}

img {
  max-width: 100%;
  max-height: 100%;
}
